﻿using System.Collections.ObjectModel;
using Prompts.Prompting.ViewModels;
using Prompts.Prompting.ViewModels.Implementation;

namespace Prompts.Prompting.Construction.Implementation
{
    public class MultiSelectTreeProvider : IMultiSelectPromptProvider<ITreeNode>
    {
        public IPrompt Get(
            string label, 
            string name, 
            ObservableCollection<ITreeNode> availableItems, 
            ObservableCollection<IPromptItem> selectedItems)
        {
            return new MultiSelectHierarchy(name, label, availableItems, selectedItems);
        }
    }
}
